package com.jsong.linuo.abstracttest;

/**
 * @Author: 黎诺
 * @CreateTime: 2025-04-23
 * @Description: 用set() get()方法赋值
 */

public class Test01 {
    public static void main(String[] args) {
        JavaEE javaEE = new JavaEE();
        javaEE.setId(1);
        javaEE.setName("linuo");
        javaEE.work();
        System.out.println("===============");
        Android android = new Android();
        android.setId(2);
        android.setName("小西");
        android.work();
        System.out.println("===============");
        Network network = new Network();
        network.setId(3);
        network.setName("欣欣");
        network.work();
        System.out.println("===============");
        Hardware hardware = new Hardware();
        hardware.setId(4);
        hardware.setName("小惠");
        hardware.work();
    }
}
